﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSGeo.MapGuide
{
    public class MgInsertResult
    {
        public static MgInsertResult Ok
        {
            get { return new MgInsertResult(true, string.Empty); }
        }

        public static MgInsertResult Fail(string error)
        {
            return new MgInsertResult(false, error);
        }

        private MgInsertResult(bool success, string error)
        {
            this.Success = success;
            this.Error = error;
        }

        public bool Success { get; private set; }

        public string Error { get; private set; }
    }
}
